<?php
//调用类
include "DB.class.php";
//接收数据
$data['name'] = $_POST['name'];
$data['title'] = $_POST['title'];
$data['price'] = $_POST['price'];
$data['time'] = $_POST['time'];
$data['type'] = $_POST['type'];
$data['status'] = $_POST['status'];
//实例化
$db = new DB();
//调用方法
$res = $db->getAdd('goods',$data);
//返回值
echo $res;
?>